const mongoose = require("mongoose")

var Schema = mongoose.Schema

var BannerSchema = new Schema({
    url: {
        type: String,
        required: true
    },
    link: {
        type:String,
        required: true
    },
    status: {
        type: String,
        default: "1"
    },
    type: {
        type: String,
        default: "1"
    }
}, {
    timestamps: {
        createdAt: "addtime",
        updatedAt: "updatetime"
    }
})

module.exports = Banner = mongoose.model("banner", BannerSchema)